package com.example.auth.utils;

import com.alibaba.fastjson.JSONObject;

import java.util.Map;

/**
 * @author xijie.wang
 * @decription:TODO
 * @date 2022-03-08 15:36
 */
public class JsonUtil {


	//java对象转map
	public static Map<String, Object> objectToMap(Object obj) {
		String jsonStr = JSONObject.toJSONString(obj);
		return JSONObject.parseObject(jsonStr);
	}
}
